package org.csu.mypetstoreplus.persistence;

import org.csu.mypetstoreplus.entity.OrderStatus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface OrderStatusDao extends JpaRepository<OrderStatus, Integer> {
    @Query(value = "select * from orderstatus where orderid =?1 limit 1", nativeQuery = true)
    OrderStatus findByOrderId(int orderId);
}
